# coding=utf-8

"""
    Created by Kalyter on 2017-12-03.
"""


def compute_rate(base=3000, rate=0.08, year=8):
    if year > 1:
        return (base + compute_rate(base, rate, year - 1)) * (1 + rate) - base
    else:
        return base * (1 + rate)


if __name__ == '__main__':
    result = compute_rate(3000)
    result *= 12
    print(result)
